import {get,post,postParams,put,del} from '../utils/request' 
export function apiLogin(data){
    return postParams({
        url:'/login',
        data:data
    })
}


export function apiLogout() {
    return post({
        url:'/logout',
    })
    
}

export function apiQuery() {
    return get({
        url:'/user/selectAll',
    })
}

export function apiAdd() {
    return post({
        url:'/user/insertUser',
        data:null
    })
}

export function apiUpdate() {
    return put({
        url:'/user/updateUser',
        data:null
    })
}

export function apiDel() {
    return del({
        url:'/user/deleteById',
        data:null
    })
}

export function apiDown() {
    return get({
        url:'/user/export',
    })
}
